/*
 * @Author: 'yangyuhang1203' '2621131059@qq.com'
 * @Date: 2025-07-23 14:28:32
 * @LastEditors: 'yangyuhang1203' '2621131059@qq.com'
 * @LastEditTime: 2025-07-24 09:03:32
 * @FilePath: \企业级\week02\Day03\Test04.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
public class Test04{
    public static void main(String[] args){
        int[] arr = {1,2,3};
        resizeArray(arr);
    }
    public static int[] resizeArray(int[] arr){
        int length = arr.length;
        int[] arr1 = new int[length*2];
        System.arraycopy(arr,0,arr1,0,length);
        return arr1;
    }
}